package com.company.project.service.impl;

import com.company.project.dao.FloatWindowMapper;
import com.company.project.model.FloatWindow;
import com.company.project.service.FloatWindowService;
import com.company.project.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created by CodeGenerator on 2019/07/11.
 */
@Service
@Transactional
public class FloatWindowServiceImpl extends AbstractService<FloatWindow> implements FloatWindowService {
    @Resource
    private FloatWindowMapper floatWindowMapper;

    @Override
    public Boolean insertFW(FloatWindow floatWindow) {
        int i = floatWindowMapper.insert(floatWindow);
        if (i > 0){
            return true;
        }
        return false;
    }

    @Override
    public Boolean updateFw(FloatWindow floatWindow) {
        int i = floatWindowMapper.updateByPrimaryKeySelective(floatWindow);
        if (i > 0){
            return true;
        }
        return false;
    }


}
